package com.service.impl;

import com.dao.FinancingDao;
import com.dao.impl.FinancingDaoImpl;
import com.entry.Financing;
import com.entry.Instituty;
import com.pojo.FinancingAmout;
import com.pojo.FinanceList;
import com.pojo.FinancingAnd;
import com.service.FinancingService;
import com.util.PageHelper;

import java.util.ArrayList;

public class FinancingServiceImpl implements FinancingService {
    private FinancingDao financingDao=new FinancingDaoImpl();
    @Override
    public ArrayList<FinancingAmout> selectQuery(FinancingAnd financing, PageHelper pageHelper) {
        return financingDao.selectQuery(financing,pageHelper);
    }

    @Override
    public boolean insertFinancing(Financing financing) {
        return financingDao.insertFinancing(financing);
    }

    @Override
    public Financing selectByFinancing_id(int financiing_id) {
        return financingDao.selectByFinancing_id(financiing_id);
    }

    @Override
    public FinanceList selectByInsitituty_id(int Financing_id) {
        return financingDao.selectByInsitituty_id(Financing_id);
    }

    @Override
    public int selectFinanciingSize(FinancingAnd financingAnd) {
        return financingDao.selectFinanciingSize(financingAnd);
    }
}
